package com.j256.ormlite.db;

import com.j256.ormlite.field.DataPersister;
import com.j256.ormlite.field.FieldConverter;
import com.j256.ormlite.field.FieldType;
import com.j256.ormlite.field.SqlType;
import com.j256.ormlite.field.types.BigDecimalStringType;
import java.util.List;

public abstract class BaseSqliteDatabaseType extends BaseDatabaseType
{
  private static final FieldConverter booleanConverter = new BaseDatabaseType.BooleanNumberFieldConverter();

  public void appendInsertNoColumns(StringBuilder paramStringBuilder)
  {
    paramStringBuilder.append("DEFAULT VALUES");
  }

  protected void appendLongType(StringBuilder paramStringBuilder, FieldType paramFieldType, int paramInt)
  {
    if ((paramFieldType.getSqlType() == SqlType.LONG) && (paramFieldType.isGeneratedId()))
    {
      paramStringBuilder.append("INTEGER");
      return;
    }
    paramStringBuilder.append("BIGINT");
  }

  protected void configureGeneratedId(String paramString, StringBuilder paramStringBuilder, FieldType paramFieldType, List<String> paramList1, List<String> paramList2, List<String> paramList3, List<String> paramList4)
  {
    if ((paramFieldType.getSqlType() != SqlType.INTEGER) && (paramFieldType.getSqlType() != SqlType.LONG))
      throw new IllegalArgumentException("Sqlite requires that auto-increment generated-id be integer or long type");
    paramStringBuilder.append("PRIMARY KEY AUTOINCREMENT ");
  }

  protected boolean generatedIdSqlAtEnd()
  {
    return false;
  }

  public FieldConverter getFieldConverter(DataPersister paramDataPersister)
  {
    switch (1.$SwitchMap$com$j256$ormlite$field$SqlType[paramDataPersister.getSqlType().ordinal()])
    {
    default:
      return super.getFieldConverter(paramDataPersister);
    case 1:
      return booleanConverter;
    case 2:
    }
    return BigDecimalStringType.getSingleton();
  }

  public boolean isCreateIfNotExistsSupported()
  {
    return true;
  }

  public boolean isCreateTableReturnsZero()
  {
    return false;
  }

  public boolean isVarcharFieldWidthSupported()
  {
    return false;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.j256.ormlite.db.BaseSqliteDatabaseType
 * JD-Core Version:    0.6.2
 */